package org.cainiao.basic.concurrent.juc.collection;

import java.util.concurrent.*;

/**
 * <br />
 * <p>
 * Author: Cai Niao(wdhlzd@163.com)<br />
 */
public class JucCollectionTest {

    public static void main(String[] args) {
        CopyOnWriteArrayList<String> copyOnWriteArrayList = new CopyOnWriteArrayList<>();
        ConcurrentLinkedQueue<String> concurrentLinkedQueue = new ConcurrentLinkedQueue<>();
        ConcurrentHashMap<String, String> concurrentHashMap = new ConcurrentHashMap<>();
        ConcurrentSkipListMap<String, String> concurrentSkipListMap = new ConcurrentSkipListMap<>();
        // BlockingQueue
        ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<>(10);
        LinkedBlockingDeque<String> linkedBlockingDeque = new LinkedBlockingDeque<>();
        SynchronousQueue<String> synchronousQueue = new SynchronousQueue<>();
        DelayQueue<DelayedEvent> delayQueue = new DelayQueue<>();
    }

}
